package singleton;

/**
 * @author shenhan
 * @create 2020/3/18 22:26
 * @description 懒汉式 (线程不安全)
 */
public class Singleton3 {
    private Singleton3() {

    }

    private static Singleton3 instance;

    public static Singleton3 getInstance() {
        if (instance == null) {
            instance = new Singleton3();
        }
        return instance;
    }
}
